package com.canqiang.template;

import android.os.Parcel;
import android.os.Parcelable;

public class DealTpl implements Parcelable{
	private String kind;
	private String no;
	private String name;
	private String price;
	private String type;
	private String unit;
	private String number;
	private String use;
	private String group;
	private String dose;
	private String times;
	public DealTpl(){
		
	}
	public DealTpl(String kind,String no,String name,String price,String type,String unit,
			String number,String use,String group,String dose,String times){
		this.kind=kind;
		this.no=no;
		this.name=name;
		this.price=price;
		this.type=type;
		this.unit=unit;
		this.number=number;
		this.use=use;
		this.group=group;
		this.dose=dose;
		this.times=times;
	}
	public void setKind(String kind) {
		this.kind = kind;
	}
	public String getKind() {
		return kind;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public String getNo() {
		return no;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getPrice() {
		return price;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getUnit() {
		return unit;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getNumber() {
		return number;
	}
	public void setUse(String use) {
		this.use = use;
	}
	public String getUse() {
		return use;
	}
	public void setGroup(String group) {
		this.group = group;
	}
	public String getGroup() {
		return group;
	}
	public void setDose(String dose) {
		this.dose = dose;
	}
	public String getDose() {
		return dose;
	}
	public void setTimes(String times) {
		this.times = times;
	}
	public String getTimes() {
		return times;
	}
	public static final Parcelable.Creator<DealTpl> CREATOR = new Creator<DealTpl>() {

		@Override
		public DealTpl createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			DealTpl dt=new DealTpl();
			dt.kind=source.readString();
			dt.no=source.readString();
			dt.name=source.readString();
			dt.price=source.readString();
			dt.type=source.readString();
			dt.unit=source.readString();
			dt.number=source.readString();
			dt.use=source.readString();
			dt.group=source.readString();
			dt.dose=source.readString();
			dt.times=source.readString();
			return dt;
		}

		@Override
		public DealTpl[] newArray(int size) {
			// TODO Auto-generated method stub
			return new DealTpl[size];
		}	
	};
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(kind);
		dest.writeString(no);
		dest.writeString(name);
		dest.writeString(price);
		dest.writeString(type);
		dest.writeString(unit);
		dest.writeString(number);
		dest.writeString(use);
		dest.writeString(group);
		dest.writeString(dose);
		dest.writeString(times);
	}
}
